home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / Include / prof.h < prev    next >
C/C++ Source or Header  |  1990-10-19  |  2KB  |  50 lines

  1. /*
  2.  * prof.h --
  3.  *
  4.  *    External declarations of the profile module.
  5.  *
  6.  * Copyright 1986 Regents of the University of California
  7.  * All rights reserved.
  8.  *
  9.  *
  10.  * $Header: /sprite/src/kernel/prof/RCS/prof.h,v 9.3 90/10/19 15:51:10 rab Exp $ SPRITE (Berkeley)
  11.  */
  12.  
  13. #ifndef _PROF
  14. #define _PROF
  15.  
  16. #include "sprite.h"
  17. #include "proc.h"
  18. #include "procMigrate.h"
  19. #include "timer.h"
  20.  
  21. /* procedures */
  22.  
  23. extern void Prof_Init _ARGS_((void));
  24. extern ReturnStatus Prof_Start _ARGS_((void));
  25.  
  26. #ifdef sun3
  27. extern void Prof_CollectInfo _ARGS_((Mach_IntrStack *stackPtr));
  28. #else
  29. extern void Prof_CollectInfo _ARGS_((unsigned int pc));
  30. #endif
  31.  
  32. extern ReturnStatus Prof_End _ARGS_((void));
  33. extern ReturnStatus Prof_Dump _ARGS_((char *dumpName));
  34. extern ReturnStatus Prof_DumpStub _ARGS_((char *pathName));
  35. extern ReturnStatus Prof_Profil _ARGS_((short *buffer, int bufSize, int offset, int scale));
  36. extern void Prof_Enable _ARGS_((Proc_ControlBlock *procPtr, short *buffer, int bufSize, int offset, int scale));
  37. extern void Prof_RecordPC _ARGS_((Proc_ControlBlock *procPtr));
  38. extern void Prof_Disable _ARGS_((Proc_ControlBlock *procPtr));
  39.  
  40. /*
  41.  * Procedures to support process migration.
  42.  */
  43.  
  44. extern ReturnStatus Prof_GetEncapSize _ARGS_((Proc_ControlBlock *procPtr, int hostID, Proc_EncapInfo *infoPtr));
  45. extern ReturnStatus Prof_EncapState _ARGS_((register Proc_ControlBlock *procPtr, int hostID, Proc_EncapInfo *infoPtr, Address ptr));
  46. extern ReturnStatus Prof_DeencapState _ARGS_((register Proc_ControlBlock *procPtr, Proc_EncapInfo *infoPtr, Address ptr));
  47.  
  48. #endif /* _PROF */
  49.  
  50.